using System.Collections.Generic;
using System.Text;
using System;
using NHibernate.Collection;
using NHibernate.Mapping;
using Iesi.Collections;
namespace JVLMRP 
{
    class MRPMasterRequirement
    {
        string requirementcode;
        string ordercode;
        DateTime createdtime;
        DateTime modifiedtime;
        string createdusercode;
        string modifiedusercode;
        string notes;
        ISet mrpdetailsrequirementList;

        public MRPMasterRequirement()
        {

        }

        public virtual string Requirementcode
        {
            get { return requirementcode; }
            set { requirementcode = value; }
        }

        public virtual string Ordercode
        {
            get { return ordercode; }
            set { ordercode = value; }
        }

        public virtual DateTime Createdtime
        {
            get { return createdtime; }
            set { createdtime = value; }
        }

        public virtual DateTime Modifiedtime
        {
            get { return modifiedtime; }
            set { modifiedtime = value; }
        }

        public virtual string Createdusercode
        {
            get { return createdusercode; }
            set { createdusercode = value; }
        }

        public virtual string Modifiedusercode
        {
            get { return modifiedusercode; }
            set { modifiedusercode = value; }
        }

        public virtual string Notes
        {
            get { return notes; }
            set { notes = value; }
        }

        public virtual ISet MrpdetailsrequirementList
        {
            get { return mrpdetailsrequirementList; }
            set { mrpdetailsrequirementList = value; }
        }

        public override string ToString()
        {
            String s = "";
            if (requirementcode != null)
                s += "requirementcode : " + requirementcode.ToString() + "\n";
            else
                s += "requirementcode : null\n";
            if (ordercode != null)
                s += "ordercode : " + ordercode.ToString() + "\n";
            else
                s += "ordercode : null\n";
            if (createdtime != null)
                s += "createdtime : " + createdtime.ToString() + "\n";
            else
                s += "createdtime : null\n";
            if (modifiedtime != null)
                s += "modifiedtime : " + modifiedtime.ToString() + "\n";
            else
                s += "modifiedtime : null\n";
            if (createdusercode != null)
                s += "createdusercode : " + createdusercode.ToString() + "\n";
            else
                s += "createdusercode : null\n";
            if (modifiedusercode != null)
                s += "modifiedusercode : " + modifiedusercode.ToString() + "\n";
            else
                s += "modifiedusercode : null\n";
            if (notes != null)
                s += "notes : " + notes.ToString() + "\n";
            else
                s += "notes : null\n";
            return s;
        }
    }
}
